package org.yzz.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 查询的总条数
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private Integer currentPage;
    private Integer pageSize;
    private String keyword;

    public Integer getStart(){
        return (currentPage-1)*pageSize;
    }
}
